package com.tjetc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;
@Document(indexName = "voclcontent")
@Data
@NoArgsConstructor
@AllArgsConstructor

public class Voclcontent {
    @Id
    @Field(type = FieldType.Integer,store = true,index = true)
    private Integer id;
    @Field(type = FieldType.Text,store = true,index = true,analyzer = "ik_max_word")
    private String name ;
    @Field(type = FieldType.Integer,store = true,index = true)
    private Integer addressId;
    @Field(type = FieldType.Integer,store = true,index = true)
    private Integer state;
    @Field(type = FieldType.Text,store = true,index = true,analyzer = "ik_max_word")
    private String photo;
    @Field(type = FieldType.Integer,store = true,index = true)
    private Integer typeId;
    @Field(type = FieldType.Date,store = true,index = true)
    private Date time;
}
